package com.cx.service;

import com.cx.pojo.Discount;

import java.util.List;

public interface DiscountService {
    int insert(Discount discount);

    int updateById(Integer discountId,Discount discount);

    int deleteById(Integer discountId);

    //根据汽车id来搜索关于该汽车的折扣
    List<Discount> selectByCarId(Integer carId);

    //搜寻所有折扣
    List<Discount> selectAll();
}
